<template>
  <div class="box">
    <header>详情页头部</header>
    <!-- 头部 -->
    <lunbo :data="data"></lunbo>
    <!-- 轮播 -->
   <adress :data="data"> </adress>
    <!-- 地区 -->
    <proview >
     
    </proview>
    <!-- 购物车 -->
  </div>
</template>

<script>
import { getDetailPro } from "@/apis/home";
import lunbo from "./components/lunbo.vue";
import adress from "./components/adress.vue";
import proview from "./components/proview.vue";
export default {
  data() {
    return {
     data:null,

    };
  },
  components: {
    lunbo,
    proview,
    adress,
  },
  created() {
    getDetailPro(this.$route.params.proid).then((res) => {
    this.data=res.data.data
   
    
     
    });
  },
};
</script>

<style scoped></style>
